package com.gitee.cirnochat.group.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gitee.cirnochat.group.model.entity.Group;
import com.gitee.cirnochat.group.model.vo.req.GroupCreateRequest;
import com.gitee.cirnochat.group.model.vo.resp.GroupVo;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
* @author FlanChan
* @description 针对表【group(群聊信息)】的数据库操作Service
* @createDate 2025-04-17 14:31:33
*/
public interface GroupService extends IService<Group> {

    GroupVo createGroup(GroupCreateRequest createRequest, MultipartFile file, HttpServletRequest request);

    Group getOneByUUID(String uuid);

    boolean existsById(Long groupId);

    void updateGroupAvatar(Long groupId, String avatarUri);

    List<Long> getGroupMemberIdsBySessionId(Long sessionId);
}
